curl --request GET \
--url https://prod01-apigw.{customer_name}.fabric.zone/api-cart/bill-to/ship-to/{shipToId}{
"shipMethod": {
"shipMethodId": "1a2b3c4d5e6f7g8h9i0j",
"shipmentCarrier": "Fedex",
"shipmentMethod": "Next Day",
"cost": {
"currency": "USD",
"amount": 5.99
}
},
"address": {
"street1": "123 Main Street",
"city": "Seattle",
"state": "WA",
"country": "United States of America",
"zipCode": "10008-1234",
"name": {
"first": "John",
"last": "Smith"
},
"email": "[email protected]",
"attention": "Leave at the back door.",
"street2": "ABC Boulevard",
"kind": "TBD",
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
}
},
"billTo": [
{
"paymentMethod": "Visa Credit",
"cardIdentifier": "1234",
"amount": 149.99,
"address": {
"street1": "123 Main Street",
"city": "Seattle",
"state": "WA",
"country": "United States of America",
"zipCode": "10008-1234",
"name": {
"first": "John",
"last": "Smith"
},
"email": "[email protected]",
"attention": "Leave at the back door.",
"street2": "ABC Boulevard",
"kind": "TBD",
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
}
},
"billToId": 1,
"cart": "5e5818a84d030c206b2ffb02",
"_id": "5fee9d59f2f08a1b3cbdea08",
"createdAt": "2020-12-31T02:09:53.914Z",
"updatedAt": "2020-12-31T02:09:53.914Z",
"__v": 0
}
],
"shipToType": "SHIP_TO_ADDRESS",
"taxCode": "FR1000",
"shipToId": 1,
"__v": 0,
"cartId": "5e5818a84d030c206b2ffb02",
"_id": "5fee9d59f2f08a1b3cbdea08",
"createdAt": "2020-12-31T02:09:53.914Z",
"updatedAt": "2020-12-31T02:09:53.914Z"
}Get bill-to by shipToId
curl --request GET \
--url https://prod01-apigw.{customer_name}.fabric.zone/api-cart/bill-to/ship-to/{shipToId}{
"shipMethod": {
"shipMethodId": "1a2b3c4d5e6f7g8h9i0j",
"shipmentCarrier": "Fedex",
"shipmentMethod": "Next Day",
"cost": {
"currency": "USD",
"amount": 5.99
}
},
"address": {
"street1": "123 Main Street",
"city": "Seattle",
"state": "WA",
"country": "United States of America",
"zipCode": "10008-1234",
"name": {
"first": "John",
"last": "Smith"
},
"email": "[email protected]",
"attention": "Leave at the back door.",
"street2": "ABC Boulevard",
"kind": "TBD",
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
}
},
"billTo": [
{
"paymentMethod": "Visa Credit",
"cardIdentifier": "1234",
"amount": 149.99,
"address": {
"street1": "123 Main Street",
"city": "Seattle",
"state": "WA",
"country": "United States of America",
"zipCode": "10008-1234",
"name": {
"first": "John",
"last": "Smith"
},
"email": "[email protected]",
"attention": "Leave at the back door.",
"street2": "ABC Boulevard",
"kind": "TBD",
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
}
},
"billToId": 1,
"cart": "5e5818a84d030c206b2ffb02",
"_id": "5fee9d59f2f08a1b3cbdea08",
"createdAt": "2020-12-31T02:09:53.914Z",
"updatedAt": "2020-12-31T02:09:53.914Z",
"__v": 0
}
],
"shipToType": "SHIP_TO_ADDRESS",
"taxCode": "FR1000",
"shipToId": 1,
"__v": 0,
"cartId": "5e5818a84d030c206b2ffb02",
"_id": "5fee9d59f2f08a1b3cbdea08",
"createdAt": "2020-12-31T02:09:53.914Z",
"updatedAt": "2020-12-31T02:09:53.914Z"
}24"5e5818a84d030c206b2ffb02"
Getting Bill To By ID
Show child attributes
3"1a2b3c4d5e6f7g8h9i0j"
"Fedex"
"Next Day"
Show child attributes
140"123 Main Street"
140"Seattle"
25"WA"
140"United States of America"
3 - 25"10008-1234"
5 - 100140"Leave at the back door."
240"ABC Boulevard"
24"TBD"
Show child attributes
3 - 24"Visa Credit"
4"1234"
x >= 0.01149.99
Show child attributes
140"123 Main Street"
140"Seattle"
25"WA"
140"United States of America"
3 - 25"10008-1234"
5 - 100140"Leave at the back door."
240"ABC Boulevard"
24"TBD"
1
"5e5818a84d030c206b2ffb02"
"5fee9d59f2f08a1b3cbdea08"
"2020-12-31T02:09:53.914Z"
"2020-12-31T02:09:53.914Z"
0
BOPIS, SHIP_TO_STORE, SHIP_TO_ADDRESS, STORE_PICKUP "SHIP_TO_ADDRESS"
"FR1000"
1
0
24"5e5818a84d030c206b2ffb02"
"5fee9d59f2f08a1b3cbdea08"
"2020-12-31T02:09:53.914Z"
"2020-12-31T02:09:53.914Z"
Was this page helpful?